package com.briup.pts.entity;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class IndexRecordExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    private Integer limit;

    private Long offset;

    private Boolean forUpdate;

    public IndexRecordExample() {
        oredCriteria = new ArrayList<>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    public void setLimit(Integer limit) {
        this.limit = limit;
    }

    public Integer getLimit() {
        return limit;
    }

    public void setOffset(Long offset) {
        this.offset = offset;
    }

    public Long getOffset() {
        return offset;
    }

    public void setForUpdate(Boolean forUpdate) {
        this.forUpdate = forUpdate;
    }

    public Boolean getForUpdate() {
        return forUpdate;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andIrdIdIsNull() {
            addCriterion("ird_id is null");
            return (Criteria) this;
        }

        public Criteria andIrdIdIsNotNull() {
            addCriterion("ird_id is not null");
            return (Criteria) this;
        }

        public Criteria andIrdIdEqualTo(Integer value) {
            addCriterion("ird_id =", value, "irdId");
            return (Criteria) this;
        }

        public Criteria andIrdIdNotEqualTo(Integer value) {
            addCriterion("ird_id <>", value, "irdId");
            return (Criteria) this;
        }

        public Criteria andIrdIdGreaterThan(Integer value) {
            addCriterion("ird_id >", value, "irdId");
            return (Criteria) this;
        }

        public Criteria andIrdIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("ird_id >=", value, "irdId");
            return (Criteria) this;
        }

        public Criteria andIrdIdLessThan(Integer value) {
            addCriterion("ird_id <", value, "irdId");
            return (Criteria) this;
        }

        public Criteria andIrdIdLessThanOrEqualTo(Integer value) {
            addCriterion("ird_id <=", value, "irdId");
            return (Criteria) this;
        }

        public Criteria andIrdIdIn(List<Integer> values) {
            addCriterion("ird_id in", values, "irdId");
            return (Criteria) this;
        }

        public Criteria andIrdIdNotIn(List<Integer> values) {
            addCriterion("ird_id not in", values, "irdId");
            return (Criteria) this;
        }

        public Criteria andIrdIdBetween(Integer value1, Integer value2) {
            addCriterion("ird_id between", value1, value2, "irdId");
            return (Criteria) this;
        }

        public Criteria andIrdIdNotBetween(Integer value1, Integer value2) {
            addCriterion("ird_id not between", value1, value2, "irdId");
            return (Criteria) this;
        }

        public Criteria andIrdWeightIsNull() {
            addCriterion("ird_weight is null");
            return (Criteria) this;
        }

        public Criteria andIrdWeightIsNotNull() {
            addCriterion("ird_weight is not null");
            return (Criteria) this;
        }

        public Criteria andIrdWeightEqualTo(String value) {
            addCriterion("ird_weight =", value, "irdWeight");
            return (Criteria) this;
        }

        public Criteria andIrdWeightNotEqualTo(String value) {
            addCriterion("ird_weight <>", value, "irdWeight");
            return (Criteria) this;
        }

        public Criteria andIrdWeightGreaterThan(String value) {
            addCriterion("ird_weight >", value, "irdWeight");
            return (Criteria) this;
        }

        public Criteria andIrdWeightGreaterThanOrEqualTo(String value) {
            addCriterion("ird_weight >=", value, "irdWeight");
            return (Criteria) this;
        }

        public Criteria andIrdWeightLessThan(String value) {
            addCriterion("ird_weight <", value, "irdWeight");
            return (Criteria) this;
        }

        public Criteria andIrdWeightLessThanOrEqualTo(String value) {
            addCriterion("ird_weight <=", value, "irdWeight");
            return (Criteria) this;
        }

        public Criteria andIrdWeightLike(String value) {
            addCriterion("ird_weight like", value, "irdWeight");
            return (Criteria) this;
        }

        public Criteria andIrdWeightNotLike(String value) {
            addCriterion("ird_weight not like", value, "irdWeight");
            return (Criteria) this;
        }

        public Criteria andIrdWeightIn(List<String> values) {
            addCriterion("ird_weight in", values, "irdWeight");
            return (Criteria) this;
        }

        public Criteria andIrdWeightNotIn(List<String> values) {
            addCriterion("ird_weight not in", values, "irdWeight");
            return (Criteria) this;
        }

        public Criteria andIrdWeightBetween(String value1, String value2) {
            addCriterion("ird_weight between", value1, value2, "irdWeight");
            return (Criteria) this;
        }

        public Criteria andIrdWeightNotBetween(String value1, String value2) {
            addCriterion("ird_weight not between", value1, value2, "irdWeight");
            return (Criteria) this;
        }

        public Criteria andIrdTimeIsNull() {
            addCriterion("ird_time is null");
            return (Criteria) this;
        }

        public Criteria andIrdTimeIsNotNull() {
            addCriterion("ird_time is not null");
            return (Criteria) this;
        }

        public Criteria andIrdTimeEqualTo(Date value) {
            addCriterion("ird_time =", value, "irdTime");
            return (Criteria) this;
        }

        public Criteria andIrdTimeNotEqualTo(Date value) {
            addCriterion("ird_time <>", value, "irdTime");
            return (Criteria) this;
        }

        public Criteria andIrdTimeGreaterThan(Date value) {
            addCriterion("ird_time >", value, "irdTime");
            return (Criteria) this;
        }

        public Criteria andIrdTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("ird_time >=", value, "irdTime");
            return (Criteria) this;
        }

        public Criteria andIrdTimeLessThan(Date value) {
            addCriterion("ird_time <", value, "irdTime");
            return (Criteria) this;
        }

        public Criteria andIrdTimeLessThanOrEqualTo(Date value) {
            addCriterion("ird_time <=", value, "irdTime");
            return (Criteria) this;
        }

        public Criteria andIrdTimeIn(List<Date> values) {
            addCriterion("ird_time in", values, "irdTime");
            return (Criteria) this;
        }

        public Criteria andIrdTimeNotIn(List<Date> values) {
            addCriterion("ird_time not in", values, "irdTime");
            return (Criteria) this;
        }

        public Criteria andIrdTimeBetween(Date value1, Date value2) {
            addCriterion("ird_time between", value1, value2, "irdTime");
            return (Criteria) this;
        }

        public Criteria andIrdTimeNotBetween(Date value1, Date value2) {
            addCriterion("ird_time not between", value1, value2, "irdTime");
            return (Criteria) this;
        }

        public Criteria andIrdHealthyIsNull() {
            addCriterion("ird_healthy is null");
            return (Criteria) this;
        }

        public Criteria andIrdHealthyIsNotNull() {
            addCriterion("ird_healthy is not null");
            return (Criteria) this;
        }

        public Criteria andIrdHealthyEqualTo(String value) {
            addCriterion("ird_healthy =", value, "irdHealthy");
            return (Criteria) this;
        }

        public Criteria andIrdHealthyNotEqualTo(String value) {
            addCriterion("ird_healthy <>", value, "irdHealthy");
            return (Criteria) this;
        }

        public Criteria andIrdHealthyGreaterThan(String value) {
            addCriterion("ird_healthy >", value, "irdHealthy");
            return (Criteria) this;
        }

        public Criteria andIrdHealthyGreaterThanOrEqualTo(String value) {
            addCriterion("ird_healthy >=", value, "irdHealthy");
            return (Criteria) this;
        }

        public Criteria andIrdHealthyLessThan(String value) {
            addCriterion("ird_healthy <", value, "irdHealthy");
            return (Criteria) this;
        }

        public Criteria andIrdHealthyLessThanOrEqualTo(String value) {
            addCriterion("ird_healthy <=", value, "irdHealthy");
            return (Criteria) this;
        }

        public Criteria andIrdHealthyLike(String value) {
            addCriterion("ird_healthy like", value, "irdHealthy");
            return (Criteria) this;
        }

        public Criteria andIrdHealthyNotLike(String value) {
            addCriterion("ird_healthy not like", value, "irdHealthy");
            return (Criteria) this;
        }

        public Criteria andIrdHealthyIn(List<String> values) {
            addCriterion("ird_healthy in", values, "irdHealthy");
            return (Criteria) this;
        }

        public Criteria andIrdHealthyNotIn(List<String> values) {
            addCriterion("ird_healthy not in", values, "irdHealthy");
            return (Criteria) this;
        }

        public Criteria andIrdHealthyBetween(String value1, String value2) {
            addCriterion("ird_healthy between", value1, value2, "irdHealthy");
            return (Criteria) this;
        }

        public Criteria andIrdHealthyNotBetween(String value1, String value2) {
            addCriterion("ird_healthy not between", value1, value2, "irdHealthy");
            return (Criteria) this;
        }

        public Criteria andIrdTemperatureIsNull() {
            addCriterion("ird_temperature is null");
            return (Criteria) this;
        }

        public Criteria andIrdTemperatureIsNotNull() {
            addCriterion("ird_temperature is not null");
            return (Criteria) this;
        }

        public Criteria andIrdTemperatureEqualTo(String value) {
            addCriterion("ird_temperature =", value, "irdTemperature");
            return (Criteria) this;
        }

        public Criteria andIrdTemperatureNotEqualTo(String value) {
            addCriterion("ird_temperature <>", value, "irdTemperature");
            return (Criteria) this;
        }

        public Criteria andIrdTemperatureGreaterThan(String value) {
            addCriterion("ird_temperature >", value, "irdTemperature");
            return (Criteria) this;
        }

        public Criteria andIrdTemperatureGreaterThanOrEqualTo(String value) {
            addCriterion("ird_temperature >=", value, "irdTemperature");
            return (Criteria) this;
        }

        public Criteria andIrdTemperatureLessThan(String value) {
            addCriterion("ird_temperature <", value, "irdTemperature");
            return (Criteria) this;
        }

        public Criteria andIrdTemperatureLessThanOrEqualTo(String value) {
            addCriterion("ird_temperature <=", value, "irdTemperature");
            return (Criteria) this;
        }

        public Criteria andIrdTemperatureLike(String value) {
            addCriterion("ird_temperature like", value, "irdTemperature");
            return (Criteria) this;
        }

        public Criteria andIrdTemperatureNotLike(String value) {
            addCriterion("ird_temperature not like", value, "irdTemperature");
            return (Criteria) this;
        }

        public Criteria andIrdTemperatureIn(List<String> values) {
            addCriterion("ird_temperature in", values, "irdTemperature");
            return (Criteria) this;
        }

        public Criteria andIrdTemperatureNotIn(List<String> values) {
            addCriterion("ird_temperature not in", values, "irdTemperature");
            return (Criteria) this;
        }

        public Criteria andIrdTemperatureBetween(String value1, String value2) {
            addCriterion("ird_temperature between", value1, value2, "irdTemperature");
            return (Criteria) this;
        }

        public Criteria andIrdTemperatureNotBetween(String value1, String value2) {
            addCriterion("ird_temperature not between", value1, value2, "irdTemperature");
            return (Criteria) this;
        }

        public Criteria andIrdBreathingIsNull() {
            addCriterion("ird_breathing is null");
            return (Criteria) this;
        }

        public Criteria andIrdBreathingIsNotNull() {
            addCriterion("ird_breathing is not null");
            return (Criteria) this;
        }

        public Criteria andIrdBreathingEqualTo(String value) {
            addCriterion("ird_breathing =", value, "irdBreathing");
            return (Criteria) this;
        }

        public Criteria andIrdBreathingNotEqualTo(String value) {
            addCriterion("ird_breathing <>", value, "irdBreathing");
            return (Criteria) this;
        }

        public Criteria andIrdBreathingGreaterThan(String value) {
            addCriterion("ird_breathing >", value, "irdBreathing");
            return (Criteria) this;
        }

        public Criteria andIrdBreathingGreaterThanOrEqualTo(String value) {
            addCriterion("ird_breathing >=", value, "irdBreathing");
            return (Criteria) this;
        }

        public Criteria andIrdBreathingLessThan(String value) {
            addCriterion("ird_breathing <", value, "irdBreathing");
            return (Criteria) this;
        }

        public Criteria andIrdBreathingLessThanOrEqualTo(String value) {
            addCriterion("ird_breathing <=", value, "irdBreathing");
            return (Criteria) this;
        }

        public Criteria andIrdBreathingLike(String value) {
            addCriterion("ird_breathing like", value, "irdBreathing");
            return (Criteria) this;
        }

        public Criteria andIrdBreathingNotLike(String value) {
            addCriterion("ird_breathing not like", value, "irdBreathing");
            return (Criteria) this;
        }

        public Criteria andIrdBreathingIn(List<String> values) {
            addCriterion("ird_breathing in", values, "irdBreathing");
            return (Criteria) this;
        }

        public Criteria andIrdBreathingNotIn(List<String> values) {
            addCriterion("ird_breathing not in", values, "irdBreathing");
            return (Criteria) this;
        }

        public Criteria andIrdBreathingBetween(String value1, String value2) {
            addCriterion("ird_breathing between", value1, value2, "irdBreathing");
            return (Criteria) this;
        }

        public Criteria andIrdBreathingNotBetween(String value1, String value2) {
            addCriterion("ird_breathing not between", value1, value2, "irdBreathing");
            return (Criteria) this;
        }

        public Criteria andIrdHeartRateIsNull() {
            addCriterion("ird_heart_rate is null");
            return (Criteria) this;
        }

        public Criteria andIrdHeartRateIsNotNull() {
            addCriterion("ird_heart_rate is not null");
            return (Criteria) this;
        }

        public Criteria andIrdHeartRateEqualTo(String value) {
            addCriterion("ird_heart_rate =", value, "irdHeartRate");
            return (Criteria) this;
        }

        public Criteria andIrdHeartRateNotEqualTo(String value) {
            addCriterion("ird_heart_rate <>", value, "irdHeartRate");
            return (Criteria) this;
        }

        public Criteria andIrdHeartRateGreaterThan(String value) {
            addCriterion("ird_heart_rate >", value, "irdHeartRate");
            return (Criteria) this;
        }

        public Criteria andIrdHeartRateGreaterThanOrEqualTo(String value) {
            addCriterion("ird_heart_rate >=", value, "irdHeartRate");
            return (Criteria) this;
        }

        public Criteria andIrdHeartRateLessThan(String value) {
            addCriterion("ird_heart_rate <", value, "irdHeartRate");
            return (Criteria) this;
        }

        public Criteria andIrdHeartRateLessThanOrEqualTo(String value) {
            addCriterion("ird_heart_rate <=", value, "irdHeartRate");
            return (Criteria) this;
        }

        public Criteria andIrdHeartRateLike(String value) {
            addCriterion("ird_heart_rate like", value, "irdHeartRate");
            return (Criteria) this;
        }

        public Criteria andIrdHeartRateNotLike(String value) {
            addCriterion("ird_heart_rate not like", value, "irdHeartRate");
            return (Criteria) this;
        }

        public Criteria andIrdHeartRateIn(List<String> values) {
            addCriterion("ird_heart_rate in", values, "irdHeartRate");
            return (Criteria) this;
        }

        public Criteria andIrdHeartRateNotIn(List<String> values) {
            addCriterion("ird_heart_rate not in", values, "irdHeartRate");
            return (Criteria) this;
        }

        public Criteria andIrdHeartRateBetween(String value1, String value2) {
            addCriterion("ird_heart_rate between", value1, value2, "irdHeartRate");
            return (Criteria) this;
        }

        public Criteria andIrdHeartRateNotBetween(String value1, String value2) {
            addCriterion("ird_heart_rate not between", value1, value2, "irdHeartRate");
            return (Criteria) this;
        }

        public Criteria andIrdAnimalIdIsNull() {
            addCriterion("ird_animal_id is null");
            return (Criteria) this;
        }

        public Criteria andIrdAnimalIdIsNotNull() {
            addCriterion("ird_animal_id is not null");
            return (Criteria) this;
        }

        public Criteria andIrdAnimalIdEqualTo(String value) {
            addCriterion("ird_animal_id =", value, "irdAnimalId");
            return (Criteria) this;
        }

        public Criteria andIrdAnimalIdNotEqualTo(String value) {
            addCriterion("ird_animal_id <>", value, "irdAnimalId");
            return (Criteria) this;
        }

        public Criteria andIrdAnimalIdGreaterThan(String value) {
            addCriterion("ird_animal_id >", value, "irdAnimalId");
            return (Criteria) this;
        }

        public Criteria andIrdAnimalIdGreaterThanOrEqualTo(String value) {
            addCriterion("ird_animal_id >=", value, "irdAnimalId");
            return (Criteria) this;
        }

        public Criteria andIrdAnimalIdLessThan(String value) {
            addCriterion("ird_animal_id <", value, "irdAnimalId");
            return (Criteria) this;
        }

        public Criteria andIrdAnimalIdLessThanOrEqualTo(String value) {
            addCriterion("ird_animal_id <=", value, "irdAnimalId");
            return (Criteria) this;
        }

        public Criteria andIrdAnimalIdLike(String value) {
            addCriterion("ird_animal_id like", value, "irdAnimalId");
            return (Criteria) this;
        }

        public Criteria andIrdAnimalIdNotLike(String value) {
            addCriterion("ird_animal_id not like", value, "irdAnimalId");
            return (Criteria) this;
        }

        public Criteria andIrdAnimalIdIn(List<String> values) {
            addCriterion("ird_animal_id in", values, "irdAnimalId");
            return (Criteria) this;
        }

        public Criteria andIrdAnimalIdNotIn(List<String> values) {
            addCriterion("ird_animal_id not in", values, "irdAnimalId");
            return (Criteria) this;
        }

        public Criteria andIrdAnimalIdBetween(String value1, String value2) {
            addCriterion("ird_animal_id between", value1, value2, "irdAnimalId");
            return (Criteria) this;
        }

        public Criteria andIrdAnimalIdNotBetween(String value1, String value2) {
            addCriterion("ird_animal_id not between", value1, value2, "irdAnimalId");
            return (Criteria) this;
        }
    }

    /**
     */
    public static class Criteria extends GeneratedCriteria {
        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}